import { createRouter, createWebHistory } from 'vue-router'

import Index from '@/views/index.vue'
import Sy from '@/views/sy.vue'
import Gwc from '@/views/gwc.vue'
import Fl from '@/views/fl.vue'
import Wd from '@/views/wd.vue'
import Ddxq from '@/views/ddxq.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/index',

      component: Index,
      children:[
            {
      path: 'sy',

      component: Sy,
    },
        {
      path: 'gwc',

      component: Gwc,
    },
        {
      path: 'fl',

      component: Fl,
    },
        {
      path: 'wd',

      component: Wd,
    },
      ]
    },
      {
      path: '/ddxq',

      component: Ddxq,
    },
  ],
})

export default router
